#!/usr/bin/php
<?php

namespace goosh;

/*
  Doc for Google Custom Search API:
  http://code.google.com/apis/customsearch/v1/overview.html
*/

$src=scandir(__DIR__.'/src');

foreach($src as $_)
if($_!='.'&&$_!='..')
require_once __DIR__."/src/$_";

$user=trim(`whoami`);
  
$homedir=trim(`cat /etc/passwd | grep "$user" | cut -d: -f6-6`);

$base="$homedir/.goosh";

define('goosh_base',$base);

new ini;

require_once __DIR__.'/controller.php';
